import Vue from 'vue'
const act = {
    // 添加热点
    actHot: function actHot(ip, postdata) {
        var ipPath = ip + '/' + postdata.page_size + '/' + postdata.number
        return Vue.http.post(ip, postdata).then(response => {
            if (response.status === 200) {
                return Promise.resolve(response.body)
            } else {
                return Promise.reject(response.data.message)
            }
        })
    }
}

export default act